import { requestWithToken } from "../utils/request";

// 账号密码登录
export function loginByAccountAndPassword({ account, password }) {
  return requestWithToken("/login", "post", { account, password });
}

// 获取验证码
export function getLoginMsgCode(mobile) {
  return requestWithToken("/login/code", "get", { mobile });
}

// 手机号登录
export function loginByMobileMsgCode({ mobile, code }) {
  return requestWithToken("/login/code", "post", { mobile, code });
}
